<?php


 $rss = new rss_feed();
 $rssUrl = "[php_property:url]";
     
  
  foreach ($rss->getRssFeed($rssUrl) as $feedItem) {
      
     
      //echo $item->feedTitle."<br>";
      //echo $item->feedUrl."<br>";        
      
  /*    echo $item['title']."<br>";
      echo $item['url']."<br>";  
      
     $data = array();
     $data['title'] = $item['title'];
     $data['url'] = $item['url'];

     db::saveData("news", $data);

  
  }


  
/*  $data= new data();
  $data->getTable("page");
  
  do {                */
  
  
 /* global $rootDir;
  global $webDir;
  include_once($rootDir.$webDir.'/com/rss_feed/api/simplepie.inc');
  include_once($rootDir.$webDir.'/com/rss_feed/api/idn/idna_convert.class.php');

    
    $inhaltNeu="";
    
    //$rssUrl = "http://www.tagesanzeiger.ch/rss_ticker.html";
    $rssUrl = "[php_property:url]";
    $rssUrl = str_replace("&amp;", "&", $rssUrl);
    //echo $rssUrl;
    
    //http://gdata.youtube.com/feeds/base/videos?q=google&client=ytapi-youtube-search&alt=rss&v=2
    

    $feed     =new SimplePie();
    $feed->set_output_encoding('ISO-8859-1');   
    $feed->enable_cache(false);
    $feed->set_feed_url($rssUrl);
    $feed->init();
    $feed->handle_content_type();
    //$item = $feed->get_item(0); 

    $feedArray=array();

    foreach ($feed->get_items()as $item)
        {
        
            
        //echo "Titel:".$item->get_title();
            
        /*$a        = $item->get_content();
        $inhaltTmp=$inhalt;

        $inhaltTmp=str_replace("[titel]", $item->get_title(), $inhaltTmp);
        $inhaltTmp=str_replace("[url]", $item->get_permalink(), $inhaltTmp);
        $inhaltTmp=str_replace("[text]", trim(strip_tags($item->get_content())), $inhaltTmp);

        $enclosure=""; */

  

  
  
?>
